package makovo.entities;

import java.io.Serializable;
import java.util.ArrayList;

import makovo.data.Items.DocumentType;

public class ApplicantDocReport implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public String curp;
	public String name;
	public String lastName;
	public String secondLastName;
	private ArrayList<DocumentType> docs;

	public String getCurp() {
		return this.curp;
	}

	public void setCurp(String curp) {
		this.curp = curp;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLastName() {
		return this.lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getSecondLastName() {
		return this.secondLastName;
	}

	public void setSecondLastName(String secondLastName) {
		this.secondLastName = secondLastName;
	}
	
	public ArrayList<DocumentType> getDocs() {
		return this.docs;
	}
	
	public void addDoc(int docId){
		try {
			docs.add(DocumentType.valueOf(docId));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public ApplicantDocReport(String curp, String name, String lastName, String secondLastName) {
		this.curp = curp;
		this.name = name;
		this.lastName = lastName;
		this.secondLastName = secondLastName;
		this.docs = new ArrayList<>();
	}
}
